﻿function getConfig(name) {
    var config = {
            name: name,
            type: 'line',
//            step: true,
            markLine: {
                data: [
                    { type: 'average', name: '平均值' }
                ]
            },
            lineStyle: {
                normal: {
                    width: 5,
                    type: "solid"
                }
            },
        label: {
            normal: {
                show: true,
                position: [-10, -50],
                textStyle: {
                    fontWeight: "bold",
                    fontSize: 16
                }
            }
        },
        data: []
    };
    return config;
}